package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.CutterLifeCycle;
import com.wing.cabinet.model.entity.StorageInventoryInout;
import com.wing.cabinet.model.entity.UseInventoryInout;
import com.wing.cabinet.model.request.CutterLifeCycleForm;
import com.wing.cabinet.model.response.CutterLifeCycleVO;

import java.util.List;
import java.util.Map;

/**
 * 刀具生命周期-Service
 *
 * @author
 */
public interface CutterLifeCycleService extends IService<CutterLifeCycle> {

    /**
     * 添加
     *
     * @param cutterLifeCycleForm
     * @return
     */
    int add(CutterLifeCycleForm cutterLifeCycleForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CutterLifeCycleVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CutterLifeCycleVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CutterLifeCycleVO get4appById(Long id);

    /**
     * 添加生命周期
     * @param labelCodeList
     * @param status
     * @param businessDetailType
     * @param useBusinessType
     * @param code
     * @param deviceCode
     */
    void addLifeCycle(List<String> labelCodeList, CutterLifeCycle.Status status, StorageInventoryInout.BusinessDetailType businessDetailType, UseInventoryInout.BusinessType useBusinessType, String code, String deviceCode);
}
